

#include "ff.h"
#include "fattime.h"
//#include "rtc.h" //RPi

DWORD get_fattime (void)
{
    unsigned long tmr;

    tmr = 0x00000;

    tmr |= ((2020-1980)&0x7F) << 25;
    tmr |= (6&0x0F) << 21;
    tmr |= (15&0x1F) << 16;
    tmr |= (12&0x1F) << 11;
    tmr |= (30&0x3F) << 5;
    tmr |= ((30>>1)&0x1F) << 0;
    
    return tmr;
}

